package com.qf.week1.day03;

public class Triangle {
    public static void main(String[] args) {
        TriangleShap(4);

    }

    public static void TriangleShap(int rows) {
        for(int i = 1;i<=rows;i++){
            for(int j = 1;j<=i;j++){
                System.out.print("*");
            }
            System.out.println();
        }
    }

    public static int sumOneTo100() {
        int sum = 0;
        for(int i = 1;i <=100;i++){
            sum+=i;
        }
        return sum;
    }
}
